package com.timguan.render.web.common;

import java.io.Serializable;

/**
 * 专题类型不匹配
 * Created by gkq on 15/11/16.
 */
public class TopicTypeMissmatchException extends Exception implements Serializable {
    public enum RedirectType {
        REDIRECT_302, REDIRECT_INVOKE
    }

    private RedirectType redirectType;
    private String redirectUrl;

    public RedirectType getRedirectType() {
        return redirectType;
    }

    public void setRedirectType(RedirectType redirectType) {
        this.redirectType = redirectType;
    }

    public String getRedirectUrl() {
        return redirectUrl;
    }

    public void setRedirectUrl(String redirectUrl) {
        this.redirectUrl = redirectUrl;
    }

    public TopicTypeMissmatchException(RedirectType redirectType, String redirectUrl) {
        this.redirectType = redirectType;
        this.redirectUrl = redirectUrl;
    }
}
